import request from "@/api/request"
export default {
    newsList(params){
        return request({
            url:"/admin/xy/news/list",
            method:"GET",
            params
        })
    },
    addnews(params){
        return request({
            url:"/admin/xy/news/save",
            method:"POST",
            params
        })
    },
    newsUpdate(params){
        return request({
            url:"/admin/xy/news/update",
            method:"POST",
            params
        })
    },
    // 详情
    newsDetail(params){
        return request({
            url:"/admin/xy/news/detail",
            method:"GET",
            params
        })
    },
    // 删除
    delNews(params){
        return request({
            url:"/admin/xy/news/del",
            method:"GET",
            params
        })
    },
}